package com.ceair.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serial;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 系统菜单表
 * </p>
 *
 * @author wangbaohai
 * @since 2025-03-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_authority")
public class SysAuthority implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 菜单名称
     */
    @TableField("name")
    private String name;

    /**
     * 父菜单ID
     */
    @TableField("menu_pid")
    private Long menuPid;

    /**
     * 前端界面路由
     */
    @TableField("component")
    private String component;

    /**
     * 所需权限
     */
    @TableField("authority")
    private String authority;

    /**
     * 按钮标识
     */
    @TableField("btn_sign")
    private String btnSign;

    /**
     * 菜单是否隐藏
     */
    @TableField("hidden")
    private Boolean hidden;

    /**
     * 菜单图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 0:菜单,1:接口
     */
    @TableField("type")
    private Integer type;

    /**
     * 0:启用,1:删除
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Boolean deleted;

    /**
     * 创建人id
     */
    @TableField(value = "creator_id", fill = FieldFill.INSERT)
    private Long creatorId;

    /**
     * 创建人名称
     */
    @TableField(value = "creator_name", fill = FieldFill.INSERT)
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改人id
     */
    @TableField(value = "modifier_id", fill = FieldFill.INSERT_UPDATE)
    private Long modifierId;

    /**
     * 修改人名称
     */
    @TableField(value = "modifier_name", fill = FieldFill.INSERT_UPDATE)
    private String modifierName;

    /**
     * 修改时间
     */
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    /**
     * 版本号
     */
    @TableField(value = "record_version", fill = FieldFill.INSERT)
    private Integer recordVersion;

    /**
     * 扩展字段2
     */
    @TableField("attribute2")
    private String attribute2;

    /**
     * 扩展字段3
     */
    @TableField("attribute3")
    private String attribute3;

    /**
     * 扩展字段4
     */
    @TableField("attribute4")
    private String attribute4;

    /**
     * 扩展字段5
     */
    @TableField("attribute5")
    private String attribute5;

    /**
     * 扩展字段1
     */
    @TableField("attribute1")
    private String attribute1;

}
